package cn.sdnu.database.service;

import java.util.concurrent.locks.ReentrantLock;

/**
 * @author Master_Joe qiaoguangtong@aliyun.com
 */
public class Delete {
	private static Delete delete = null;
	private static ReentrantLock lock = new ReentrantLock();

	private Delete() {

	}

	public static Delete getInstance() {
		if (delete == null) {
			lock.lock();
			try {
				if (delete == null) {
					delete = new Delete();
				}
			} finally {
				lock.unlock();
			}
		}
		return delete;
	}

	public void sqlHandle(String sql) {

		if (sql.equals("")) {

		} else {
			System.out.println("Error: You have some syntax error, please try again");
		}

	}
}
